#include<stdio.h>
#define __TSAUTOEXIT_EASYCLASS__
#include"27log.h"


int main(void)
{
	logType_TS *newLog=tsNewLogCtrl();
	tsSetLogFile(newLog,"test.log");
	tsThrowLog(newLog,_OTHER_LOG_,"I am a test","I am a test",TSFUNCTIONADDR_CAST(main));
	tsThrowLog(_tsGlobalLog_Using,_OTHER_LOG_,"I am a test","I am a test",TSFUNCTIONADDR_CAST(main));
	char why[256]={},info[256]={};
	long long int logTimeNum=0;
	tsGetLogInfo(_tsGlobalLog_Using,NULL,why,info,NULL,&logTimeNum);
	printf("%s\n%s\n%lld",why,info,logTimeNum);
	tsGetLogInfo(newLog,NULL,why,info,NULL,&logTimeNum);
	printf("%s\n%s\n%lld",why,info,logTimeNum);
	tsAutoPrintLog(_tsGlobalLog_Using);
	tsAutoPrintLog(newLog);
	tsCheckFileOpen(_tsGlobalLog_Using,NULL);
	tsAutoPrintLog(_tsGlobalLog_Using);
	tsFreeLogPtr(newLog);
	tsCheckPoint_Easy(NULL);

	return 0;
}